<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('config', function (Blueprint $table) {
            $table->id();
            $table->string("name")->comment("配置的key键名")->nullable();
            $table->string("value")->comment("配置的val值")->nullable();
            $table->string("inc_type")->comment("配置分组")->nullable();
            $table->string("desc")->comment("描述")->nullable();
        });
        DB::statement("ALTER TABLE `config` comment'tp的配置表'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('config');
    }
}
